/**
 * @description：系统的状态
 */
export enum sysEnum {
  ONE = 1,
  TWO = 2,
  THREE = 3,
  FOUR = 4,
  FIVE = 5,
  SIX = 6,
  SEVEN = 7,
  EIGHT = 8,
  NINE = 9,
  TEN = 10,
  ELEVEN = 11,
  TWELVE = 12,
  SIXTEEN = 16,
  EIGHTEEN = 18, 
  FROZEN = 41,
  LOCK = 80,
  UNKNOW = 999
}

/**
 * @description：标记
 */
export enum flagEnum {
  FLAG_TRUE = "Y",
  FLAG_FALSE = "N"
}

/**
 * @description：启用禁用
 */
export enum activeEnum {
  ACTIVE = "Y",
  INACTIVE = "N"
}

/**
 * @description：系统的表单操作类型
 */
export enum OptEnum {
  //未知
  UNKNOW = 0,
  //新增
  CREATE = 1,
  //修改
  EDIT = 2,
  //查看
  VIEW = 3,
  //删除
  DELETE = 4,
  //修改启用禁用
  CHANGE_ACTIVE = 5,
  //修改状态
  CHANGE_STATUS = 6,
  //审核
  AUDIT = 7,
  APPLY = 8,
  MTI_PAY = 9
}

export function getOptTitle(opt: OptEnum): string {
  if (opt === OptEnum.CREATE) {
    return "新增";
  } else if (opt === OptEnum.EDIT) {
    return "修改";
  } else if (opt === OptEnum.VIEW) {
    return "查看";
  } else if (opt === OptEnum.DELETE) {
    return "删除";
  }

  return "";
}
